{include "Public/header"}
<div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
        	<div class="widget-title">
        		<div class="left-buttons"> 
        			<a href="{:U('save')}" class="btn btn-success btn-mini"><i class="icon-plus icon-white"></i>Add</a>
            	</div>
        	</div>
          <div class="widget-content nopadding">
            <table class="table table-bordered table-striped">
              <thead>
                <tr>
                  <th width="15%">Username</th>
                  <th width="10%">Power</th>
                  <th width="20%">Name</th>
                  <th width="15%">last login time</th>
                  <th width="15%">last login ip</th>
                  <th width="15%">操作</th>
                </tr>
              </thead>
              <tbody>
              	{foreach $list as $v}
                <tr class="gradeX">
                  <td>{$v['username']}</td>
                  <td>{$v['role_name']}</td>
                  <td>{$v['name']}</td>
                  <td style="text-align:center;">{:date('Y-m-d H:i:s',$v['last_login_time'])}</td>
                  <td>{$v['last_login_ip']}</td>
                  <td style="text-align:center;">
                  <a href="{:U('update?id='.$v['id'])}">Edit</a>
                  -
                  <a href="{:U('delete?id='.$v['id'])}" class="delete">Delete</a>
                  </td>
                </tr>
                {/foreach}
              </tbody>
              <tfoot>
              	<tr>
              		<td colspan="10">{$page}</td>
              	</tr>
              </tfoot>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
{include "Public/footer"}